package com.ys.ffms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("bill")
public class Bill {
    //主键id
    @TableId(type = IdType.AUTO)
    private Integer id;
    //消费者id
    private Integer userId;
    //消费金额
    private Double price;
    //消费渠道
    private Integer channelId;
    //数据状态
    private Integer status;
    //标题
    private String title;
    //消费详情-备注
    private String details;
    //流水类型 1.支出 2.收入
    private Integer flowtypeId;
    //数据创建时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    //数据销毁日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date outTime;

}
